package cn.kgc.jdktest.demo6;

/**
 * @Author:yaozhaobao
 * @Description:TODO
 * @version:1.0
 */
public class Test {

    public static void main(String[] args) {

        invokeDinnerCook(new Cook() {
            @Override
            public void makefood(String food) {
                System.out.println("用"+food+"做一盘宫保鸡丁");
            }
        });

        invokeDinnerCook((food)->{System.out.println("用"+food+"做一盘宫保鸡丁");});

    }


    public  static void invokeDinnerCook(Cook cook){
            cook.makefood("鸡肉");
    }
}
